package com.maserb.monitor.service.schoolNotice;

import com.maserb.monitor.entity.schoolNotice.SchoolNoticeEntity;
import com.maserb.monitor.repository.schoolNotice.SchoolNoticeRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface SchoolNoticeService extends JpaSpecificationService<SchoolNoticeRepository, SchoolNoticeRepository, SchoolNoticeEntity, String> {

    Page<SchoolNoticeEntity> findAll(Pageable pageable,String orgId, String type, String keyword);

    Page<SchoolNoticeEntity> findAll(Pageable pageable,String orgId, String type, String keyword,String subjectId);

    List<SchoolNoticeEntity> findAllBySubjectId(String orgId, String type, String keyword, String subjectId);

    Page<SchoolNoticeEntity> findAll(Pageable pageable,String userId,String clazzId, String type, String keyword,String startTime, String endTime);

    void addNoticeHistory(SchoolNoticeEntity entity);
}